package com.elong.android.specialhouse.adapter.common;

/**
 * 
 * @interfaceName: MultiItemType
 * @Description: ListView item多布局接口
 * @author kaiqi.li
 * @date 2015-7-28 下午4:2:37
 */
public interface MultiItemType<T> {
	
	/**
	 * 设置不同item的layout
	 * @param position item's position
	 * @param t item's data
	 * @return item's layout id 
	 */
	int getLayoutId(int position, T t) ;
	
	/**
	 * 
	 * @return item type count num 
	 */
	int getViewTypeCount();
	
	/**
	 * 
	 * @param position item's position
	 * @param t item's data
	 * @return type
	 */
	int getItemViewType(int position, T t);
}
